﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TreeDtree.aspx.cs" Inherits="WebUI.Demo.Templates.TreeDtree" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Dtree</title>
    <script src="../js/JavaScript.js" type="text/javascript"></script>
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <script type="text/javascript">
        var tree_imgbase = "../";
        var Tree = new dTree('Tree');
        Tree.add(0, -1, '全站内容', '');
        <x:RepeaterExt ID="CmsMenu1" Data="Node" Index="0" Level="Lower" runat="server">
        <ItemTemplate>
        Tree.add(<%# Eval("NodePkId") %>, <%# Eval("NodeParentId") %>, '<%# Eval("NodeTitle") %>');
            <x:RepeaterExt ID="CmsMenu1" Data="Node" FieldParentKeys="NodePkId" Level="Lower" runat="server">
                <ItemTemplate>Tree.add(<%# Eval("NodePkId") %>, <%# Eval("NodeParentId") %>, '<%# Eval("NodeTitle") %>');
            </ItemTemplate>
        </x:RepeaterExt>
        </ItemTemplate>
        </x:RepeaterExt>
        document.write(Tree);
    </script>
</body>
</html>
